package com.wtb.javatool.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtb.javatool.dao.TeacherMapper;
import com.wtb.javatool.entity.Homework;
import com.wtb.javatool.entity.Teacher;
import com.wtb.javatool.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper,Teacher> implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public List<Teacher> getTeacherByUserId(Long userId) {
        return teacherMapper.getTeacherByUserId(userId);
    }
}
